﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="pwdrecovery.aspx.cs" Inherits="SysYcjy_pwdrecovery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>远程教育平台-寻回密码</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:PasswordRecovery ID="PasswordRecovery1" runat="server" Height="172px" Width="330px">
            <UserNameTemplate>
                <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" style="width: 275px; height: 117px">
                                <tr>
                                    <td align="center" colspan="2" class="style22">
                                        是否忘记了您的密码?</td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" class="style22">
                                        要接收您的密码，请输入您的用户名。</td>
                                </tr>
                                <tr class="font33">
                                    <td align="right">
                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label></td>
                                    <td>
                                        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                            ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" ValidationGroup="PasswordRecovery1" Width="29px">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" style="color: red">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                                <tr >
                                    <td align="right" colspan="2" class="font33">
                                        <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="提交" ValidationGroup="PasswordRecovery1" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </UserNameTemplate>
            <QuestionTemplate>
                <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" style="width: 330px; height: 172px">
                                <tr class="style22">
                                    <td align="center" colspan="2">
                                        标识确认</td>
                                </tr>
                                <tr class="style22">
                                    <td align="center" colspan="2">
                                        要接收您的密码，请回答下列问题。</td>
                                </tr>
                                <tr class="font33">
                                    <td align="right" style="text-align: left">
                                        用户名</td>
                                    <td>
                                        &nbsp;<asp:Literal ID="UserName" runat="server"></asp:Literal></td>
                                </tr>
                                <tr class="font33">
                                    <td align="right" style="text-align: left">
                                        问题</td>
                                    <td>
                                        <asp:Literal ID="Question" runat="server"></asp:Literal>
                                    </td>
                                </tr>
                                <tr class="font33">
                                    <td align="right" style="text-align: left">
                                        <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">答案</asp:Label></td>
                                    <td>
                                        <asp:TextBox ID="Answer" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"
                                            ErrorMessage="需要答案。" ToolTip="需要答案。" ValidationGroup="PasswordRecovery1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" style="color: red">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" colspan="2">
                                        <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="提交" ValidationGroup="PasswordRecovery1" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </QuestionTemplate>
            <SuccessTemplate>
                <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" style="height: 172px; width: 330px;">
                                <tr>
                                    <td class="style22" style="text-align: center">
                                        您的密码已自动更改，<br />
                                        并发送到您预留的信箱中,请注意查收。<br />
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="font3" style="text-align: right">
                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/index.aspx">返回首页</asp:HyperLink></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </SuccessTemplate>
        </asp:PasswordRecovery>
    
    </div>
    </form>
</body>
</html>
